package com.yx.outSourcing.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yx.outSourcing.enums.AppStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 临时通行证申请单表
 * </p>
 *
 * @author zcc
 * @since 2025-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("delete_application")
@ApiModel(value="DeleteApplication对象", description="临时通行证删除申请单表")
public class DeleteApplication implements Serializable {



    @ApiModelProperty(value = "申请单ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "申请单号（yyyymmdd+3位流水码）")
    private String appNo;

    @ApiModelProperty(value = "申请单位ID")
    private Long appUid;

    @ApiModelProperty(value = "申请单位名称")
    private String appUnit;

    @ApiModelProperty(value = "申请人")
    private String appPerson;

    @ApiModelProperty(value = "进厂人数")
    private Integer entryCount;

    @ApiModelProperty(value = "外协负责人")
    private String outContact;

    @ApiModelProperty(value = "工作内容")
    private String content;

    @ApiModelProperty(value = "申请日期")
    private LocalDate appDate;

    @ApiModelProperty(value = "外协单位ID")
    private Long outUid;

    @ApiModelProperty(value = "外协单位名称")
    private String outUnit;

    @ApiModelProperty(value = "工作区域")
    private String area;

    @ApiModelProperty(value = "外协负责人联系方式")
    private String outPhone;

    @ApiModelProperty(value = "状态（0-新建，1-审批中，2-已审批，3-已拒绝）")
    private AppStatus status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人员")
    private String createBy;

    @ApiModelProperty(value = "修改人员")
    private String updataBy;

    @ApiModelProperty(value = "备注")
    private String remark;



}
